add -Wall to CFLAGS if gcc is being used. Use AC_CONFIG_FILES() to define
authorSven Neumann <sven@gimp.org>
Tue, 16 Aug 2005 09:36:41 +0000 (09:36 +0000)
committerSven Neumann <neo@src.gnome.org>
Tue, 16 Aug 2005 09:36:41 +0000 (09:36 +0000)
2005-08-16  Sven Neumann  <sven@gimp.org>

* configure.ac: add -Wall to CFLAGS if gcc is being used. Use
AC_CONFIG_FILES() to define the files that need to be generated.

ChangeLog
configure.ac

index c5f9880a0c719451d1cbeb5dc8d7a19de97a8f41..b96d4a5a3ccf39d2c454caa3c4b75624f0be78c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-16  Sven Neumann  <sven@gimp.org>
+
+       * configure.ac: add -Wall to CFLAGS if gcc is being used. Use
+       AC_CONFIG_FILES() to define the files that need to be generated.
+
 2005-08-16  Øyvind Kolås  <pippin@gimp.org>
 
        * babl/base/mode-ycbcr.c: use coefficients from Charles Poyntes color
index b673e18389c59c3f1d757f99b62b1aa7c511849c..e6491bb2e3f50eac78bcbafbf88813704c83126d 100644 (file)
@@ -28,13 +28,22 @@ AM_PROG_LIBTOOL
 AC_STDC_HEADERS
 AM_SANITY_CHECK
 
+if eval "test x$GCC = xyes"; then
+  case " $CFLAGS " in
+  *[\ \        ]-Wall[\ \      ]*) ;;
+  *) CFLAGS="$CFLAGS -Wall" ;;
+  esac
+fi
+
 dnl ===========================================================================
 
-AC_OUTPUT(Makefile                            \
-          babl.pc                             \
-          babl/Makefile                       \
-          babl/base/Makefile                  \
-          tests/Makefile                      \
-          INSTALL                             \
-          README
+AC_CONFIG_FILES(
+Makefile
+babl.pc
+babl/base/Makefile
+tests/Makefile
+INSTALL
+README
 )
+
+AC_OUTPUT